package Demo3;

import Demo2.ProtectedDemo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86136
 * Date: 2024-05-23
 * Time: 15:10
 */
class Demo {
    /*public void test() {
        System.out.println(super.a);
    }*/
    public static void main(String[] args) {
       /* Demo demo = new Demo();
        demo.test();*/
        Test3Demo test3Demo = new Test3Demo();
        test3Demo.test();
    }
}
public class Test3Demo extends ProtectedDemo {
    public void test() {
        System.out.println(super.a);
    }

    public static void main(String[] args) {
        /*Test3Demo test3Demo = new Test3Demo();
        test3Demo.test();*/
    }
}
